<?php
namespace App\JsonRpc\impl;

use Hyperf\RpcServer\Annotation\RpcService;
use App\JsonRpc\IUserService;

/**
 * 注意，如希望通过服务中心来管理服务，需在注解内增加 publishTo 属性
 * @RpcService(name="UserService", protocol="jsonrpc-http", server="jsonrpc-http")
 */
class UserService implements IUserService
{
    public function auth($token) {
        return ['rpc_token'=>$token];
    }
}